home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Visual Basic new SourceCode and Projects / Personal Organiser / Address.frm (.txt) next >
Encoding:
Visual Basic Form  |  2000-08-12  |  24.9 KB  |  816 lines

  1. VERSION 5.00
  2. Object = "{FAE1731F-430A-11D4-B183-D1B9690DF016}#22.0#0"; "FORMINDIVIDUAL.OCX"
  3. Object = "{56034C77-7369-44EE-828E-D0C208D19BDF}#8.0#0"; "GOLD BUTTON.OCX"
  4. Begin VB.Form Contacts 
  5.    BackColor       =   &H80000004&
  6.    BorderStyle     =   0  'None
  7.    Caption         =   " Personal Organiser 3.0"
  8.    ClientHeight    =   3720
  9.    ClientLeft      =   0
  10.    ClientTop       =   0
  11.    ClientWidth     =   3720
  12.    Icon            =   "Address.frx":0000
  13.    LinkTopic       =   "Form1"
  14.    Picture         =   "Address.frx":1272
  15.    ScaleHeight     =   3720
  16.    ScaleWidth      =   3720
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin pOCX.GoldButton Command11 
  20.       Height          =   270
  21.       Left            =   2960
  22.       TabIndex        =   8
  23.       Top             =   2160
  24.       Width           =   615
  25.       _ExtentX        =   1085
  26.       _ExtentY        =   476
  27.       Caption         =   "New"
  28.       Alignment       =   2
  29.       ForeColor       =   -2147483630
  30.       DownColor       =   255
  31.       SkinDisabledText=   -2147483632
  32.       SkinHighlight   =   -2147483628
  33.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  34.          Name            =   "Tahoma"
  35.          Size            =   8.25
  36.          Charset         =   0
  37.          Weight          =   400
  38.          Underline       =   0   'False
  39.          Italic          =   0   'False
  40.          Strikethrough   =   0   'False
  41.       EndProperty
  42.       OnDown          =   2
  43.    End
  44.    Begin VB.PictureBox Picture2 
  45.       AutoSize        =   -1  'True
  46.       BackColor       =   &H8000000D&
  47.       BorderStyle     =   0  'None
  48.       Height          =   360
  49.       Left            =   125
  50.       Picture         =   "Address.frx":2E374
  51.       ScaleHeight     =   360
  52.       ScaleWidth      =   450
  53.       TabIndex        =   15
  54.       Top             =   840
  55.       Width           =   450
  56.    End
  57.    Begin VB.PictureBox Picture3 
  58.       AutoSize        =   -1  'True
  59.       BackColor       =   &H8000000D&
  60.       BorderStyle     =   0  'None
  61.       Height          =   360
  62.       Left            =   120
  63.       Picture         =   "Address.frx":2EC56
  64.       ScaleHeight     =   360
  65.       ScaleWidth      =   450
  66.       TabIndex        =   14
  67.       Top             =   1215
  68.       Width           =   450
  69.    End
  70.    Begin VB.PictureBox Picture4 
  71.       AutoSize        =   -1  'True
  72.       BackColor       =   &H8000000D&
  73.       BorderStyle     =   0  'None
  74.       Height          =   360
  75.       Left            =   2025
  76.       Picture         =   "Address.frx":2F538
  77.       ScaleHeight     =   360
  78.       ScaleWidth      =   450
  79.       TabIndex        =   13
  80.       Top             =   1200
  81.       Width           =   450
  82.    End
  83.    Begin VB.PictureBox Picture5 
  84.       AutoSize        =   -1  'True
  85.       BackColor       =   &H8000000D&
  86.       BorderStyle     =   0  'None
  87.       Height          =   360
  88.       Left            =   2025
  89.       Picture         =   "Address.frx":2FE1A
  90.       ScaleHeight     =   360
  91.       ScaleWidth      =   450
  92.       TabIndex        =   12
  93.       Top             =   840
  94.       Width           =   450
  95.    End
  96.    Begin VB.TextBox Text3 
  97.       BeginProperty Font 
  98.          Name            =   "Tahoma"
  99.          Size            =   8.25
  100.          Charset         =   0
  101.          Weight          =   400
  102.          Underline       =   0   'False
  103.          Italic          =   0   'False
  104.          Strikethrough   =   0   'False
  105.       EndProperty
  106.       Height          =   280
  107.       Left            =   800
  108.       TabIndex        =   3
  109.       Top             =   2880
  110.       Width           =   2055
  111.    End
  112.    Begin VB.TextBox Text2 
  113.       BeginProperty Font 
  114.          Name            =   "Tahoma"
  115.          Size            =   8.25
  116.          Charset         =   0
  117.          Weight          =   400
  118.          Underline       =   0   'False
  119.          Italic          =   0   'False
  120.          Strikethrough   =   0   'False
  121.       EndProperty
  122.       Height          =   280
  123.       Left            =   800
  124.       TabIndex        =   2
  125.       Top             =   2520
  126.       Width           =   2055
  127.    End
  128.    Begin VB.TextBox Text1 
  129.       BeginProperty Font 
  130.          Name            =   "Tahoma"
  131.          Size            =   8.25
  132.          Charset         =   0
  133.          Weight          =   400
  134.          Underline       =   0   'False
  135.          Italic          =   0   'False
  136.          Strikethrough   =   0   'False
  137.       EndProperty
  138.       Height          =   280
  139.       Left            =   800
  140.       TabIndex        =   1
  141.       Top             =   2160
  142.       Width           =   2055
  143.    End
  144.    Begin FormIndividual.IndForm IndForm1 
  145.       Left            =   4320
  146.       Top             =   4560
  147.       _ExtentX        =   873
  148.       _ExtentY        =   873
  149.    End
  150.    Begin pOCX.GoldButton Command1 
  151.       Height          =   270
  152.       Left            =   2960
  153.       TabIndex        =   9
  154.       Top             =   2520
  155.       Width           =   615
  156.       _ExtentX        =   1085
  157.       _ExtentY        =   476
  158.       Caption         =   "Add"
  159.       Alignment       =   2
  160.       ForeColor       =   -2147483630
  161.       DownColor       =   255
  162.       SkinDisabledText=   -2147483632
  163.       SkinHighlight   =   -2147483628
  164.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  165.          Name            =   "Tahoma"
  166.          Size            =   8.25
  167.          Charset         =   0
  168.          Weight          =   400
  169.          Underline       =   0   'False
  170.          Italic          =   0   'False
  171.          Strikethrough   =   0   'False
  172.       EndProperty
  173.       OnDown          =   2
  174.    End
  175.    Begin pOCX.GoldButton Command10 
  176.       Height          =   270
  177.       Left            =   2960
  178.       TabIndex        =   10
  179.       Top             =   2880
  180.       Width           =   615
  181.       _ExtentX        =   1085
  182.       _ExtentY        =   476
  183.       Caption         =   "Save"
  184.       Alignment       =   2
  185.       ForeColor       =   -2147483630
  186.       DownColor       =   255
  187.       SkinDisabledText=   -2147483632
  188.       SkinHighlight   =   -2147483628
  189.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  190.          Name            =   "Tahoma"
  191.          Size            =   8.25
  192.          Charset         =   0
  193.          Weight          =   400
  194.          Underline       =   0   'False
  195.          Italic          =   0   'False
  196.          Strikethrough   =   0   'False
  197.       EndProperty
  198.       OnDown          =   2
  199.    End
  200.    Begin pOCX.GoldButton Command6 
  201.       Height          =   270
  202.       Left            =   2960
  203.       TabIndex        =   11
  204.       Top             =   3240
  205.       Width           =   615
  206.       _ExtentX        =   1085
  207.       _ExtentY        =   476
  208.       Caption         =   "Delete"
  209.       Alignment       =   2
  210.       ForeColor       =   -2147483630
  211.       DownColor       =   255
  212.       SkinDisabledText=   -2147483632
  213.       SkinHighlight   =   -2147483628
  214.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  215.          Name            =   "Tahoma"
  216.          Size            =   8.25
  217.          Charset         =   0
  218.          Weight          =   400
  219.          Underline       =   0   'False
  220.          Italic          =   0   'False
  221.          Strikethrough   =   0   'False
  222.       EndProperty
  223.       OnDown          =   2
  224.    End
  225.    Begin pOCX.GoldButton Command2 
  226.       Height          =   285
  227.       Left            =   820
  228.       TabIndex        =   4
  229.       Top             =   3240
  230.       Width           =   450
  231.       _ExtentX        =   794
  232.       _ExtentY        =   503
  233.       Caption         =   "| <"
  234.       Alignment       =   2
  235.       ForeColor       =   -2147483630
  236.       DownColor       =   255
  237.       SkinDisabledText=   -2147483632
  238.       SkinHighlight   =   -2147483628
  239.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  240.          Name            =   "MS Sans Serif"
  241.          Size            =   8.25
  242.          Charset         =   0
  243.          Weight          =   700
  244.          Underline       =   0   'False
  245.          Italic          =   0   'False
  246.          Strikethrough   =   0   'False
  247.       EndProperty
  248.       OnDown          =   2
  249.    End
  250.    Begin pOCX.GoldButton Command3 
  251.       Height          =   285
  252.       Left            =   1350
  253.       TabIndex        =   5
  254.       Top             =   3240
  255.       Width           =   450
  256.       _ExtentX        =   794
  257.       _ExtentY        =   503
  258.       Caption         =   "<<"
  259.       Alignment       =   2
  260.       ForeColor       =   -2147483630
  261.       DownColor       =   255
  262.       SkinDisabledText=   -2147483632
  263.       SkinHighlight   =   -2147483628
  264.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  265.          Name            =   "MS Sans Serif"
  266.          Size            =   8.25
  267.          Charset         =   0
  268.          Weight          =   700
  269.          Underline       =   0   'False
  270.          Italic          =   0   'False
  271.          Strikethrough   =   0   'False
  272.       EndProperty
  273.       OnDown          =   2
  274.    End
  275.    Begin pOCX.GoldButton Command4 
  276.       Height          =   285
  277.       Left            =   1865
  278.       TabIndex        =   6
  279.       Top             =   3240
  280.       Width           =   450
  281.       _ExtentX        =   794
  282.       _ExtentY        =   503
  283.       Caption         =   " >>"
  284.       Alignment       =   2
  285.       ForeColor       =   -2147483630
  286.       DownColor       =   255
  287.       SkinDisabledText=   -2147483632
  288.       SkinHighlight   =   -2147483628
  289.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  290.          Name            =   "MS Sans Serif"
  291.          Size            =   8.25
  292.          Charset         =   0
  293.          Weight          =   700
  294.          Underline       =   0   'False
  295.          Italic          =   0   'False
  296.          Strikethrough   =   0   'False
  297.       EndProperty
  298.       OnDown          =   2
  299.    End
  300.    Begin pOCX.GoldButton Command5 
  301.       Height          =   285
  302.       Left            =   2380
  303.       TabIndex        =   7
  304.       Top             =   3240
  305.       Width           =   450
  306.       _ExtentX        =   794
  307.       _ExtentY        =   503
  308.       Caption         =   " | >"
  309.       Alignment       =   2
  310.       ForeColor       =   -2147483630
  311.       DownColor       =   255
  312.       SkinDisabledText=   -2147483632
  313.       SkinHighlight   =   -2147483628
  314.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  315.          Name            =   "MS Sans Serif"
  316.          Size            =   8.25
  317.          Charset         =   0
  318.          Weight          =   700
  319.          Underline       =   0   'False
  320.          Italic          =   0   'False
  321.          Strikethrough   =   0   'False
  322.       EndProperty
  323.       OnDown          =   2
  324.    End
  325.    Begin VB.Shape Shape6 
  326.       Height          =   315
  327.       Index           =   3
  328.       Left            =   2370
  329.       Top             =   3230
  330.       Width           =   480
  331.    End
  332.    Begin VB.Shape Shape6 
  333.       Height          =   315
  334.       Index           =   2
  335.       Left            =   1845
  336.       Top             =   3230
  337.       Width           =   480
  338.    End
  339.    Begin VB.Shape Shape6 
  340.       Height          =   315
  341.       Index           =   1
  342.       Left            =   1335
  343.       Top             =   3230
  344.       Width           =   480
  345.    End
  346.    Begin VB.Shape Shape6 
  347.       Height          =   315
  348.       Index           =   0
  349.       Left            =   810
  350.       Top             =   3230
  351.       Width           =   485
  352.    End
  353.    Begin VB.Shape Shape5 
  354.       Height          =   300
  355.       Left            =   2940
  356.       Top             =   3230
  357.       Width           =   645
  358.    End
  359.    Begin VB.Shape Shape4 
  360.       Height          =   300
  361.       Left            =   2940
  362.       Top             =   2870
  363.       Width           =   645
  364.    End
  365.    Begin VB.Shape Shape3 
  366.       Height          =   300
  367.       Left            =   2940
  368.       Top             =   2498
  369.       Width           =   645
  370.    End
  371.    Begin VB.Shape Shape1 
  372.       Height          =   304
  373.       Left            =   2940
  374.       Top             =   2138
  375.       Width           =   638
  376.    End
  377.    Begin VB.Label Label4 
  378.       Alignment       =   2  'Center
  379.       Appearance      =   0  'Flat
  380.       BackColor       =   &H00000000&
  381.       Caption         =   "Personal Organiser 3.0"
  382.       BeginProperty Font 
  383.          Name            =   "Tahoma"
  384.          Size            =   6.75
  385.          Charset         =   0
  386.          Weight          =   700
  387.          Underline       =   0   'False
  388.          Italic          =   0   'False
  389.          Strikethrough   =   0   'False
  390.       EndProperty
  391.       ForeColor       =   &H80000009&
  392.       Height          =   180
  393.       Left            =   728
  394.       TabIndex        =   24
  395.       Top             =   337
  396.       Width           =   2295
  397.    End
  398.    Begin VB.Label Title 
  399.       Alignment       =   2  'Center
  400.       Appearance      =   0  'Flat
  401.       BackColor       =   &H00000000&
  402.       BeginProperty Font 
  403.          Name            =   "Tahoma"
  404.          Size            =   6.75
  405.          Charset         =   0
  406.          Weight          =   700
  407.          Underline       =   0   'False
  408.          Italic          =   0   'False
  409.          Strikethrough   =   0   'False
  410.       EndProperty
  411.       ForeColor       =   &H80000009&
  412.       Height          =   335
  413.       Left            =   620
  414.       TabIndex        =   23
  415.       Top             =   248
  416.       Width           =   2438
  417.    End
  418.    Begin VB.Shape Shape2 
  419.       Height          =   365
  420.       Left            =   600
  421.       Shape           =   4  'Rounded Rectangle
  422.       Top             =   240
  423.       Width           =   2480
  424.    End
  425.    Begin VB.Label Label3 
  426.       AutoSize        =   -1  'True
  427.       BackColor       =   &H8000000E&
  428.       BackStyle       =   0  'Transparent
  429.       Caption         =   "E-Mail :"
  430.       BeginProperty Font 
  431.          Name            =   "Tahoma"
  432.          Size            =   6.75
  433.          Charset         =   0
  434.          Weight          =   700
  435.          Underline       =   0   'False
  436.          Italic          =   0   'False
  437.          Strikethrough   =   0   'False
  438.       EndProperty
  439.       ForeColor       =   &H8000000E&
  440.       Height          =   165
  441.       Left            =   148
  442.       TabIndex        =   22
  443.       Top             =   2920
  444.       Width           =   555
  445.    End
  446.    Begin VB.Label Label2 
  447.       AutoSize        =   -1  'True
  448.       BackColor       =   &H8000000E&
  449.       BackStyle       =   0  'Transparent
  450.       Caption         =   "Tel No :"
  451.       BeginProperty Font 
  452.          Name            =   "Tahoma"
  453.          Size            =   6.75
  454.          Charset         =   0
  455.          Weight          =   700
  456.          Underline       =   0   'False
  457.          Italic          =   0   'False
  458.          Strikethrough   =   0   'False
  459.       EndProperty
  460.       ForeColor       =   &H8000000E&
  461.       Height          =   165
  462.       Left            =   135
  463.       TabIndex        =   21
  464.       Top             =   2580
  465.       Width           =   570
  466.    End
  467.    Begin VB.Label Label1 
  468.       AutoSize        =   -1  'True
  469.       BackColor       =   &H8000000E&
  470.       BackStyle       =   0  'Transparent
  471.       Caption         =   "Name :"
  472.       BeginProperty Font 
  473.          Name            =   "Tahoma"
  474.          Size            =   6.75
  475.          Charset         =   0
  476.          Weight          =   700
  477.          Underline       =   0   'False
  478.          Italic          =   0   'False
  479.          Strikethrough   =   0   'False
  480.       EndProperty
  481.       ForeColor       =   &H8000000E&
  482.       Height          =   165
  483.       Left            =   200
  484.       TabIndex        =   20
  485.       Top             =   2200
  486.       Width           =   510
  487.    End
  488.    Begin VB.Label Email 
  489.       AutoSize        =   -1  'True
  490.       BackColor       =   &H8000000E&
  491.       BackStyle       =   0  'Transparent
  492.       Caption         =   "Compose E-Mail"
  493.       BeginProperty Font 
  494.          Name            =   "Tahoma"
  495.          Size            =   6.75
  496.          Charset         =   0
  497.          Weight          =   700
  498.          Underline       =   0   'False
  499.          Italic          =   0   'False
  500.          Strikethrough   =   0   'False
  501.       EndProperty
  502.       ForeColor       =   &H8000000E&
  503.       Height          =   165
  504.       Left            =   570
  505.       TabIndex        =   19
  506.       Top             =   960
  507.       Width           =   1185
  508.    End
  509.    Begin VB.Label Dialer 
  510.       AutoSize        =   -1  'True
  511.       BackColor       =   &H8000000E&
  512.       BackStyle       =   0  'Transparent
  513.       Caption         =   "Telephone Dialer"
  514.       BeginProperty Font 
  515.          Name            =   "Tahoma"
  516.          Size            =   6.75
  517.          Charset         =   0
  518.          Weight          =   700
  519.          Underline       =   0   'False
  520.          Italic          =   0   'False
  521.          Strikethrough   =   0   'False
  522.       EndProperty
  523.       ForeColor       =   &H8000000E&
  524.       Height          =   165
  525.       Left            =   570
  526.       TabIndex        =   18
  527.       Top             =   1320
  528.       Width           =   1275
  529.    End
  530.    Begin VB.Label Address 
  531.       AutoSize        =   -1  'True
  532.       BackColor       =   &H8000000E&
  533.       BackStyle       =   0  'Transparent
  534.       Caption         =   "Address Book"
  535.       BeginProperty Font 
  536.          Name            =   "Tahoma"
  537.          Size            =   6.75
  538.          Charset         =   0
  539.          Weight          =   700
  540.          Underline       =   0   'False
  541.          Italic          =   0   'False
  542.          Strikethrough   =   0   'False
  543.       EndProperty
  544.       ForeColor       =   &H000000C0&
  545.       Height          =   165
  546.       Left            =   2505
  547.       TabIndex        =   17
  548.       Top             =   1320
  549.       Width           =   1035
  550.    End
  551.    Begin VB.Label Calculator 
  552.       AutoSize        =   -1  'True
  553.       BackColor       =   &H8000000E&
  554.       BackStyle       =   0  'Transparent
  555.       Caption         =   "Calculator"
  556.       BeginProperty Font 
  557.          Name            =   "Tahoma"
  558.          Size            =   6.75
  559.          Charset         =   0
  560.          Weight          =   700
  561.          Underline       =   0   'False
  562.          Italic          =   0   'False
  563.          Strikethrough   =   0   'False
  564.       EndProperty
  565.       ForeColor       =   &H00FFFFFF&
  566.       Height          =   165
  567.       Left            =   2535
  568.       TabIndex        =   16
  569.       Top             =   960
  570.       Width           =   765
  571.    End
  572.    Begin VB.Label End 
  573.       AutoSize        =   -1  'True
  574.       BackColor       =   &H8000000E&
  575.       BackStyle       =   0  'Transparent
  576.       Caption         =   "X"
  577.       BeginProperty Font 
  578.          Name            =   "Tahoma"
  579.          Size            =   6.75
  580.          Charset         =   0
  581.          Weight          =   700
  582.          Underline       =   0   'False
  583.          Italic          =   0   'False
  584.          Strikethrough   =   0   'False
  585.       EndProperty
  586.       ForeColor       =   &H8000000E&
  587.       Height          =   165
  588.       Left            =   3455
  589.       TabIndex        =   0
  590.       Top             =   40
  591.       Width           =   105
  592.    End
  593.    Begin VB.Image Image1 
  594.       Height          =   3720
  595.       Left            =   0
  596.       Picture         =   "Address.frx":306FC
  597.       Top             =   0
  598.       Width           =   3705
  599.    End
  600. Attribute VB_Name = "Contacts"
  601. Attribute VB_GlobalNameSpace = False
  602. Attribute VB_Creatable = False
  603. Attribute VB_PredeclaredId = True
  604. Attribute VB_Exposed = False
  605.  Dim i As Integer
  606. Private Sub Calculator_Click()
  607. Dim j As Integer
  608.     j = 0
  609.     s = App.Path + "\address1.dat"
  610.     Open s For Output As #2
  611.        Do Until j = smax
  612.            Write #2, sair(j).first
  613.            Write #2, sair(j).telno
  614.            Write #2, sair(j).Email
  615.            j = j + 1
  616.         Loop
  617.     Close #2
  618. On Error GoTo err:
  619. Me.Hide
  620. main.Show
  621. End Sub
  622. Private Sub Command1_Click()
  623. On Error GoTo err:
  624.    ReDim Preserve sair(smax + 1)
  625.         sair(smax).first = Text1.Text
  626.         sair(smax).telno = Text2.Text
  627.         sair(smax).Email = Text3.Text
  628.         smax = smax + 1
  629.         i = smax - 1
  630. Form2.Label1.Caption = "The Record Was Added Successfully !"
  631. Form2.Show 1
  632. Command1.Enabled = False
  633. End Sub
  634. Private Sub Command10_Click()
  635. On Error GoTo err:
  636.         sair(i).first = Text1.Text
  637.         sair(i).telno = Text2.Text
  638.         sair(i).Email = Text3.Text
  639. Form2.Label1.Caption = "The Record Was Saved Successfully !"
  640. Form2.Show 1
  641. End Sub
  642. Private Sub Command11_Click()
  643. Text1.Text = ""
  644. Text2.Text = ""
  645. Text3.Text = ""
  646. Command1.Enabled = True
  647. Command6.Enabled = False
  648. Command10.Enabled = False
  649. Text1.SetFocus
  650. On Error GoTo err:
  651. End Sub
  652. Private Sub Command2_Click()
  653. Command1.Enabled = False
  654. If smax = 0 Then Exit Sub
  655.   On Error Resume Next
  656.       i = 0
  657.       Text1.Text = sair(i).first
  658.       Text2.Text = sair(i).telno
  659.       Text3.Text = sair(i).Email
  660. On Error GoTo err
  661. End Sub
  662. Private Sub Command3_Click()
  663. Command1.Enabled = False
  664. If smax = 0 Then Exit Sub
  665.     On Error Resume Next
  666.         i = (i - 1 + smax) Mod smax
  667.         Text1.Text = sair(i).first
  668.         Text2.Text = sair(i).telno
  669.         Text3.Text = sair(i).Email
  670. On Error GoTo err
  671. End Sub
  672. Private Sub Command4_Click()
  673. Command1.Enabled = False
  674. If smax = 0 Then Exit Sub
  675.     On Error Resume Next
  676.         i = (i + 1) Mod smax
  677.         Text1.Text = sair(i).first
  678.         Text2.Text = sair(i).telno
  679.         Text3.Text = sair(i).Email
  680. On Error GoTo err
  681. End Sub
  682. Private Sub Command5_Click()
  683. Command1.Enabled = False
  684. If smax = 0 Then Exit Sub
  685.     On Error Resume Next
  686.         i = smax - 1
  687.         Text1.Text = sair(i).first
  688.         Text2.Text = sair(i).telno
  689.         Text3.Text = sair(i).Email
  690. On Error GoTo err
  691. End Sub
  692. Private Sub Command6_Click()
  693. Dim exitcon As Variant
  694. exitcon = MsgBox("  Are you sure you want to delete " & Text1.Text & " ?", vbYesNo, " Delete Record ?")
  695. If exitcon = vbYes Then
  696. If smax < 0 Then
  697.         MsgBox ("There is nothing to delete !")
  698.         Exit Sub
  699.     ElseIf smax = 1 Or smax < 1 Then
  700.         i = 0
  701.         Text1.Text = ""
  702.         Text2.Text = ""
  703.         Text3.Text = ""
  704.     smax = 0
  705.         Exit Sub
  706.     End If
  707.     Dim z
  708.     z = i
  709.     While z <> smax - 1
  710.         sair(z).first = sair((z + 1)).first  '*****
  711.         sair(z).telno = sair((z + 1)).telno
  712.         sair(z).Email = sair((z + 1)).Email
  713.         z = z + 1
  714.     Wend
  715.         smax = smax - 1
  716.     i = (i) Mod smax
  717.     Text1.Text = sair(i).first
  718.     Text2.Text = sair(i).telno
  719.     Text3.Text = sair(i).Email
  720. Text1.Text = ""
  721. Text2.Text = ""
  722. Text3.Text = ""
  723. Form2.Label1.Caption = "The Record Was Deleted Successfully !"
  724. Form2.Show 1
  725. Cancel = 1
  726. End If
  727. On Error GoTo err
  728. End Sub
  729. Private Sub Command9_Click()
  730.   Dim j As Integer
  731.     j = 0
  732.     s = App.Path + "\address1.dat"
  733.     Open s For Output As #2
  734.        Do Until j = smax
  735.            Write #2, sair(j).first
  736.            Write #2, sair(j).telno
  737.            Write #2, sair(j).Email
  738.            j = j + 1
  739.         Loop
  740.     Close #2
  741. Dim exitcon As Variant
  742. exitcon = MsgBox("  Are you sure you want to Exit ?", vbYesNo, " Personal Organiser 3.0")
  743. If exitcon = vbYes Then
  744. Unload Me
  745. Cancel = 1
  746. End If
  747. On Error GoTo err:
  748. End Sub
  749. Private Sub Dialer_Click()
  750. MsgBox "Under Construction !", vbOKOnly, " Construction"
  751. End Sub
  752. Private Sub Email_Click()
  753. MsgBox "Under Construction !", vbOKOnly, " Construction"
  754. End Sub
  755. Private Sub End_Click()
  756. Dim j As Integer
  757.     j = 0
  758.     s = App.Path + "\address1.dat"
  759.     Open s For Output As #2
  760.        Do Until j = smax
  761.            Write #2, sair(j).first
  762.            Write #2, sair(j).telno
  763.            Write #2, sair(j).Email
  764.            j = j + 1
  765.         Loop
  766.     Close #2
  767. Dim exitcon As Variant
  768. exitcon = MsgBox("  Are you sure you want to Exit ?", vbYesNo, " Personal Organiser 3.0")
  769. If exitcon = vbYes Then
  770. Unload Me
  771. Cancel = 1
  772. End If
  773. On Error GoTo err:
  774. End Sub
  775. Private Sub Form_Unload(Cancel As Integer)
  776. Unload Me
  777. End Sub
  778. Private Sub Form_Load()
  779. Command6.Enabled = False
  780. Command10.Enabled = False
  781.     i = 0
  782.     smax = 0
  783.     ppath = ""
  784.     On Error GoTo err
  785.     s = App.Path + "\address1.dat"
  786.     Open s For Input As #1
  787.        Do Until EOF(1)
  788.            ReDim Preserve sair(smax + 1)
  789.            Input #1, sair(smax).first
  790.            Input #1, sair(smax).telno
  791.            Input #1, sair(smax).Email
  792.            smax = smax + 1
  793.         Loop
  794.         Close #1
  795.         i = smax - 1
  796. formen = IndForm1.Bitmap2Form(Me.Picture, vbBlack)
  797. End Sub
  798. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  799.     FormDrag Me
  800.     End Sub
  801. Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  802.     FormDrag Me
  803.     End Sub
  804. Private Sub Text1_Change()
  805. Command10.Enabled = True
  806. Command6.Enabled = True
  807. End Sub
  808. Private Sub Text2_Change()
  809. Command10.Enabled = True
  810. Command6.Enabled = True
  811. End Sub
  812. Private Sub Text3_Change()
  813. Command10.Enabled = True
  814. Command6.Enabled = True
  815. End Sub
  816.